package com;

import com.github.xiaoymin.swaggerbootstrapui.annotations.EnableSwaggerBootstrapUI;
import com.spring4all.swagger.EnableSwagger2Doc;
import org.apache.commons.codec.digest.DigestUtils;
import org.junit.jupiter.api.Test;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@EnableSwagger2Doc
@EnableSwaggerBootstrapUI
@MapperScan("com.dingli.framework.mapper")
public class MainApplication {
    public static void main(String[] args) {
        SpringApplication.run(MainApplication.class);
    }

   /* @Test
    void md5Tests() {
        // 关于DigestUtils工具类
        // 在spring系列包中的DigestUtils工具类只有md5算法的api
        // 在commons-code系列包中的DigestUtils工具类中有md系列和sha家族的多种算法的api
        String password = "1234";
        String encodePassword = DigestUtils.md5Hex(password);
        System.out.println("[md5] encode password=" + encodePassword);
    }*/

}
